package com.atguigu04.override.exer2;

/**
 * ClassName: Cylinder
 * Package: com.atguigu04.override.exer2
 * Description:
 *
 * @Author 姜
 * @Create 2023/11/21 17:33
 * @Version 1.0
 */
public class Cylinder extends Circle {
    private double length;

    public Cylinder() {
        length = 1;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double findVolume() {
        return findArea() * getLength();
    }
}
